package po.record;
/**
 * 文档类型
 * @author admin
 *
 */
public class DocumentType {
	private int typeId;
	private String typeName;
	private boolean deleteFlag;
	
	public DocumentType() {
		super();
	}

	public DocumentType(int typeId, String typeName, boolean deleteFlag) {
		super();
		this.typeId = typeId;
		this.typeName = typeName;
		this.deleteFlag = deleteFlag;
	}

	public int getTypeId() {
		return typeId;
	}

	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "DocumentType [typeId=" + typeId + ", typeName=" + typeName + ", deleteFlag=" + deleteFlag + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (deleteFlag ? 1231 : 1237);
		result = prime * result + typeId;
		result = prime * result + ((typeName == null) ? 0 : typeName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DocumentType other = (DocumentType) obj;
		if (deleteFlag != other.deleteFlag)
			return false;
		if (typeId != other.typeId)
			return false;
		if (typeName == null) {
			if (other.typeName != null)
				return false;
		} else if (!typeName.equals(other.typeName))
			return false;
		return true;
	}
	
	
}
